package com.chuangke.file.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.chuangke.common.http.HttpResult;

/**
 * @Description 链接分享
 * @author stm
 * @date
 * @date 2019年2月22日 下午4:10:09
 */
@RestController
@RequestMapping("linkshare")
public class FileLinkShareController {

	@PostMapping(value = "/verify")
	public HttpResult query(HttpServletRequest request, HttpServletResponse response,@RequestBody Map<String, Object> params) {
		String token = request.getHeader("token") ;
		return HttpResult.ok();
	}

	/**
	 * @return
	 */
	@GetMapping(value = "/file/{linkid}")
	public HttpResult loadFile(@PathVariable String linkid) {
		
		return HttpResult.ok();
	}
}
